package pong.view;

import gameFramework.model.entites.Entity;
import gameFramework.view.*;
import java.awt.*;

/**
 * @author Matthieu Paniez
 *
 */
public class GPBrick extends GEntity
{

	public GPBrick(Entity model)
	{
		super(model);
	}
	
	/**
	 * @see gameFramework.view.GEntity#draw(java.awt.Graphics2D)
	 */
	@Override
	public void draw(Graphics2D g2d) 
	{
		g2d.setColor(Color.WHITE);
		g2d.fillRoundRect(model.getPosition().x, model.getPosition().y,
				this.model.getSize().width, this.model.getSize().height, 2, 2);
		
	}
	
}
